package com.grad.why.studentsystem.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.grad.why.studentsystem.mapper.OptionparamsMapper;
import com.grad.why.studentsystem.service.ClassesTableService;
import com.grad.why.studentsystem.service.OptionparamsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;


@Component
@Service(interfaceClass = OptionparamsService.class)
@Transactional
public class OptionparamsServiceImpl implements OptionparamsService {
    @Autowired
    private OptionparamsMapper optionparamsMapper;

    @Override
    public String getParamValueByParamName(String imgRootPath) {
        try{
            return optionparamsMapper.getParamValueByParamName(imgRootPath);
        }catch (Exception e){
            e.printStackTrace();
        }
        return null;
    }
}
